package com.jokesoft.feedback.core.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jokesoft.feedback.core.repository.FeedBackRepository;

@Service
public class FeedBackServiceImpl implements FeedBackService {

    @Autowired
    FeedBackRepository repo;

    @Override
    public void addFeedBack(FeedBackDto feedBack) {

        repo.insertFeedBack(feedBack.getName(), feedBack.getEmail(), feedBack.getFeedBack());

    }

}
